package com.michael.demo.springcloud.alibaba.seata.api.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 类功能描述:
 * <pre>
 *   xxxx
 * </pre>
 *
 * @author Michael
 * @version 1.0
 * @date 2021/04/02 11:49
 */
@FeignClient("service-order")
public interface OrderSrvice {

    @PostMapping(value = "/order/order")
    String order(
            @RequestParam("userId") Long userId,
            @RequestParam("commodityCode") String commodityCode,
            @RequestParam("orderCount") int orderCount
    );
}
